import React from 'react';
import {Route, IndexRoute} from 'react-router';

import App from './container/App';
import IndexBody from './component/IndexBody';
import About from './component/About';
import Repos from './component/Repos';
import Repo from './component/Repos/Repo';
import Details from './component/Details';

export default () => {
    return (
        <Route path="/" component={App}>
            <IndexRoute component={IndexBody}/>
            <Route path="/repos" component={Repos}>
                <Route path="/repos/:userName/:repoName" component={Repo}/>
            </Route>
            <Route path="/details" component={Details}/>
            <Route path="/about" component={About}/>
        </Route>
    );
};
			